package org.web.accesscontrollist.sdk.dto;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Setter
@Getter
/**
 * 操作员，操作员信息。
 * */
public class OperatorDTO {

    /**
     * 访问秘钥，通过秘钥进行新增或者修改操作。
     */
    @NotNull(message = "accessKey can't be null. ")
    private String accessKey;

    @NotBlank(message = "businessLine can't be blank. ")
    @Size(max = 100)
    private String businessLine;

    /**
     * 操作员ID，上次修改记录的操作人员工号，唯一标识操作人员。
     */
    @NotBlank(message = "operatorNum can't be blank. ")
    @Size(max = 50)
    private String operatorNum;

    /**
     * 操作员，上次修改记录的操作人员名称。
     */
    @NotBlank(message = "operatorName can't be blank. ")
    @Size(max = 50)
    private String operatorName;
}
